Skip to main content

CollectionsApi

All URIs are relative to **

MethodHTTP requestDescription
collectionsColuuidCommitPostPOST /collections/{coluuid}/commitProduce a CID of the collection contents
collectionsColuuidContentsDeleteDELETE /collections/{coluuid}/contentsDeletes a content from a collection
collectionsColuuidDeleteDELETE /collections/{coluuid}Deletes a collection
collectionsColuuidGetGET /collections/{coluuid}Get contents in a collection
collectionsColuuidPostPOST /collections/{coluuid}Add contents to a collection
collectionsFsAddPostPOST /collections/fs/addAdd a file to a collection
collectionsGetGET /collections/List all collections
collectionsPostPOST /collections/Create a new collection

collectionsColuuidCommitPost

Produce a CID of the collection contents

This endpoint is used to save the contents in a collection, producing a top-level CID that references all the current CIDs in the collection.

Example

 collectionsColuuidCommitPost coluuid=value

Parameters

NameTypeDescriptionNotes
coluuidstringcoluuid

Return type

string

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

collectionsColuuidContentsDelete

Deletes a content from a collection

This endpoint is used to delete an existing content from an existing collection. If two or more files with the same contentid exist in the collection, delete the one in the specified path

Example

 collectionsColuuidContentsDelete coluuid=value contentid=value

Parameters

NameTypeDescriptionNotes
coluuidstringCollection ID
contentidstringContent ID
bodyMain.deleteContentFromCollectionBodyVariable to use when filtering for files (must be either 'path' or 'content_id')

Return type

string

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

collectionsColuuidDelete

Deletes a collection

This endpoint is used to delete an existing collection.

Example

 collectionsColuuidDelete coluuid=value

Parameters

NameTypeDescriptionNotes
coluuidstringCollection ID

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: Not Applicable

[Back to top] [Back to API list] [Back to Model list] [Back to README]

collectionsColuuidGet

Get contents in a collection

This endpoint is used to get contents in a collection. If no colpath query param is passed

Example

 collectionsColuuidGet coluuid=value  dir=value

Parameters

NameTypeDescriptionNotes
coluuidstringcoluuid
dirstringDirectory[optional]

Return type

string

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

collectionsColuuidPost

Add contents to a collection

This endpoint adds already-pinned contents (that have ContentIDs) to a collection.

Example

 collectionsColuuidPost coluuid=value

Parameters

NameTypeDescriptionNotes
coluuidstringcoluuid
contentIDsarray[integer]Content IDs to add to collection

Return type

map[String, string]

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

collectionsFsAddPost

Add a file to a collection

This endpoint adds a file to a collection

Example

 collectionsFsAddPost  coluuid=value  content=value  path=value

Parameters

NameTypeDescriptionNotes
coluuidstringCollection ID
contentstringContent
pathstringPath to file

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

collectionsGet

List all collections

This endpoint is used to list all collections. Whenever a user logs on estuary, it will list all collections that the user has access to. This endpoint provides a way to list all collections to the user.

Example

 collectionsGet

Parameters

This endpoint does not need any parameter.

Return type

array[Collections.Collection]

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

collectionsPost

Create a new collection

This endpoint is used to create a new collection. A collection is a representaion of a group of objects added on the estuary. This endpoint can be used to create a new collection.

Example

 collectionsPost

Parameters

NameTypeDescriptionNotes
bodyMain.createCollectionBodyCollection name and description

Return type

Collections.Collection

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]